﻿using System;

namespace ManPowerEngine
{
    public class Log
    {
        public const int DEBUG = 3;
        public const int INFO = 2;
        public const int ERROR = 1;
        public const int SLIENT = 0;

        public static int DebugLevel = DEBUG;

        public Log()
        {
            Console.Write("Log created");
        }

        public static void Debug(Object message)
        {
            if (DebugLevel >= DEBUG)
            {
                System.Diagnostics.Debug.WriteLine("[Debug] " + message);
            }
        }

        public static void Info(Object message)
        {
            if (DebugLevel >= INFO)
            {
                System.Diagnostics.Debug.WriteLine("[Info] " + message);
            }
        }

        public static void Error(Object message)
        {
            if (DebugLevel >= ERROR)
            {
                System.Diagnostics.Debug.WriteLine("[Error] " + message);
            }
        }
    }
}
